All Questions
7 questions
0votes
1answer
1kviews
get_body_params() is always empty in POST request
I am registering a custom route like this : add_action('rest_api_init', function () { register_rest_route( 'professeurEQ', 'statistics', array( 'methods' => 'POST', 'callback'...
1vote
1answer
330views
woocommerce registration form with klaviyo(don't work with current user)
I'm trying to integrate klaviyo with woocom form, this is the code I added below. The issue is when I add any hardcoded email in variable $emailUntrim = "[email protected]" instead of $...
3votes
2answers
885views
Fetch post block/field data as JSON with Wordpress API
Usually find what I need from here without asking but seem to have run into something new, apologies if this has been answered elsewhere. I am building a site in wordpress which isn't my usual CMS but ...
0votes
1answer
256views
How to clone all WordPress Rest API end points
I'm developing a plugin for my Android app which uses WordPress rest API. I removed unwanted values from the response. Since it is not recommended to modify the response of end points, I need to clone ...
2votes
0answers
28views
how to decode % in app [closed]
the % sign was not working on a shortcode-ui field on the website so i did: attr.set( 'value', encodeURIComponent( decodeURIComponent( attr.get( 'value' ).replace("%", "%") ) ), { silent: ...
1vote
0answers
277views
PHP > Scheduled Tasks > Sending daily email with dynamic API variables
I'm trying to write a PHP cron job that would call an API, return a set of numerical variables, calculate a second set of variables, and send an email to selected recipients with those variables ...
1vote
0answers
2kviews
Fetching instagram api not working on wordpress
<?php $json = file_get_contents('https://api.instagram.com/v1/users/userid/media/recent/?access_token=accesstoken'); $a_json = json_decode($json, true); foreach( $a_json['data'] as $key => $...